package net.csdn.business.common.domain.issue.event;

import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * @author likun
 * @date 2022/11/24 20:41
 */
@Data
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
public class MoveEventDto extends BaseEventDto {
    private Long sourceProjectId;

    private String sourcePathWithNamespace;

    private String sourceNameWithNamespace;

    public static MoveEventDto buildChangeEvent(String id, Long projectId, String actionUid, Long sourceProjectId) {
        return MoveEventDto.builder()
                .id(id).projectId(projectId).actionUid(actionUid)
                .sourceProjectId(sourceProjectId)
                .build();
    }

}